<template>
    <div class="sidebar">
        <ul class="sidebar-list">
            <li class="sidebar-item active">
                <i class="iconfont icon-faxian icon-size-big"></i>
                <span>发现</span>
            </li>
            <li class="sidebar-item">
                <i class="iconfont icon-plussquarefangjiahao icon-size-big"></i>
                <span>发布</span>
            </li>
            <li class="sidebar-item">
                <i class="iconfont icon-tongzhi icon-size-big"></i>
                <span>通知</span>
            </li>
        </ul>
        <button class="login-btn">登录</button>
        <div class="tip">
            <div class="tip-title">马上登录即可</div>
            <ul class="tip-list">
                <li class="tip-item">
                    <i class="iconfont icon-dianzan icon-size-small"></i>
                    <span>刷到更懂你的优质内容</span>
                </li>
                <li class="tip-item">
                    <i class="iconfont icon-green icon-size-small"></i>
                    <span>搜索最新种草、拔草信息</span>
                </li>
                <li class="tip-item">
                    <i class="iconfont icon-xiaohongshushoucang icon-size-small"></i>
                    <span>查看收藏、点赞的笔记</span>
                </li>
                <li class="tip-item">
                    <i class="iconfont icon-xiaoxi icon-size-small"></i>
                    <span>与他人更好地互动、交流</span>
                </li>
            </ul>
        </div>
    </div>
</template>

<script setup lang="ts">

</script>

<style scoped lang="scss">
.sidebar {
    margin-top: 72px;
    width: var(--side-width);
    display: var(--side-display);
    margin-left: 12px;
    padding-top: 16px;
    overflow: visible;
    position: fixed;
    height: calc(100vh - 72px);
    background-color: var(--color-background);
    transition: all .2s;

    &-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    &-item {
        padding-left: 16px;
        margin-bottom: 8px;
        min-height: 48px;
        display: flex;
        align-items: center;
        color: var(--color-primary-label);
        border-radius: var(--border-radius);

        span {
            font-size: 1rem;
            font-weight: 600;
            margin-left: 12px;
        }

        &.active {
            background-color: var(--color-active-background);
        }

        &:hover {
            background-color: var(--color-active-background);
            cursor: pointer;
        }
    }

    .login-btn {
        background-color: var(--color-red) !important;
        outline: none;
        border: none;
        width: 100%;
        height: 48px;
        border-radius: var(--border-radius);
        color: var(--color-btn);
        font-size: 1rem;
        cursor: pointer;
    }

    .tip {
        margin-top: 12px;
        padding: 16px;
        border: 1px solid var(--color-border);
        border-radius: 16px;
        font-size: 14px;
        cursor: pointer;

        &-title{
            margin-bottom: 8px;
        }

        &-list {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        &-item {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            color: var(--color-tertiary-label);

            span {
                margin-left: 8px;
            }
        }
    }

}
</style>